//
//  MyselfCollectionViewCell.m
//  LOLVideoPlayer
//
//  Created by SXW on 16/3/26.
//  Copyright © 2016年 盛宣伟. All rights reserved.
//

#import "MyselfCollectionViewCell.h"

@implementation MyselfCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        _imageView  = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 80, 90)];
        _imageView.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:_imageView];
        
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(_imageView.frame)+ 3, 80, 27)];
        _contentLabel.textAlignment = NSTextAlignmentCenter;
        _contentLabel.textColor = [UIColor colorFromHexRGB:@"000000"];
        _contentLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_contentLabel];
        
    }
    
    return self;
}

//cell设置
-(void)configData:(MyselfModel *)dataModel{

    [_imageView sd_setImageWithURL:[NSURL URLWithString:dataModel.img] placeholderImage:[UIImage imageNamed:@"default_head"]];
    _contentLabel.text = dataModel.name;

}










@end
